package com.ruoyi.market.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * 店铺程序配置对象 configProgram
 *
 * @author ruoyi
 */
public class ConfigProgram extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /* 店铺ID */
    private String shopId;

    // 微信公众号原始ID
    private String officialOriginAppId;

    // 微信公众号ID
    private String officialAppId;

    // 微信公众号密钥
    private String officialSecret;

    // 前端网页域名
    private String officialDomain;

    // 微信原始小程序ID
    private String wxMpOriginAppId;

    // 微信小程序ID
    private String wxMpAppId;

    // 微信小程序密钥
    private String wxMpSecret;

    public ConfigProgram() {

    }

    public ConfigProgram(String shopId) {
        this.shopId = shopId;
    }

    @NotBlank(message = "店铺ID不能为空")
    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getOfficialOriginAppId() {
        return officialOriginAppId;
    }

    public void setOfficialOriginAppId(String officialOriginAppId) {
        this.officialOriginAppId = officialOriginAppId;
    }

    public String getWxMpOriginAppId() {
        return wxMpOriginAppId;
    }

    public void setWxMpOriginAppId(String wxMpOriginAppId) {
        this.wxMpOriginAppId = wxMpOriginAppId;
    }

    public String getOfficialAppId() {
        return officialAppId;
    }

    public void setOfficialAppId(String officialAppId) {
        this.officialAppId = officialAppId;
    }

    public String getOfficialSecret() {
        return officialSecret;
    }

    public void setOfficialSecret(String officialSecret) {
        this.officialSecret = officialSecret;
    }

    public String getWxMpAppId() {
        return wxMpAppId;
    }

    public void setWxMpAppId(String wxMpAppId) {
        this.wxMpAppId = wxMpAppId;
    }

    public String getOfficialDomain() {
        return officialDomain;
    }

    public void setOfficialDomain(String officialDomain) { this.officialDomain = officialDomain; }

    public String getWxMpSecret() {
        return wxMpSecret;
    }

    public void setWxMpSecret(String wxMpSecret) {
        this.wxMpSecret = wxMpSecret;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("shopId", getShopId())
                .append("officialOriginAppId", getOfficialOriginAppId())
                .append("officialAppId", getOfficialAppId())
                .append("officialSecret", getOfficialSecret())
                .append("officialDomain", getOfficialDomain())
                .append("wxMpAppId", getWxMpAppId())
                .append("wxMpOriginAppId", getWxMpOriginAppId())
                .append("wxMpSecret", getWxMpSecret())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
